<body bgcolor="LightSteelBlue">
<h1  align="center">The Joy of Forums.....
<img src="http://www.graphicmania.net/wp-content/uploads/forum-icon.png" >
</h1>
<hr>
<h2>Available Categories</h2>
<ul>
<h4>
Create a New Category......
</h4>
<% form_tag :action => :new do %>
    categoryName: <%= text_field :category, :categoryName %>
<br/>
<br/>
    <%= submit_tag 'Add new Category' %>
<br/>
<br/>
<%= link_to 'Back', :controller => :categories, :action => :index %>

<% end %>

<% @categories.each do |cat| %>
    <li> Category Name = <%= cat.categoryName %> 
<br/><%= link_to 'See Topics In this Category',     :controller => 'categories', :action => 'details', :id => cat.id %>
&nbsp

<br/><%= link_to 'Edit Category',     :controller => 'categories', :action => 'editCategories', :id => cat.id %>
<br/><%= link_to 'Delete Category',     :controller => 'categories', :action => 'deleteCategory', :id => cat.id %>
<br/>
<%= link_to 'Create a New Topic' , :controller => 'categories', :action => 'newTopic', :id => cat.id  %>    


<% end %>
</ul>
</body>